﻿@using PagedList;
@using PagedList.Mvc;
@model List<YuFeng.Models.New.News>
@{
    ViewBag.SecondTitle = "资质荣誉";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="page-wrap">
    @Html.Partial("_Header")
    <div class="content clearfix">
        <img src="~/assets/images/honor-1.png" />
        <div class="content-box clearfix">
            <div class="content-box-title">
                <p>荣誉证书</p>
            </div>
            @foreach (YuFeng.Models.New.News item in Model.Where(o => o.Type == (int)YuFeng.Models.AppEnum.NewsType.HonorCertificate))
            {
                <div class="col-xs-6 no-padding honor-img">
                    <img class="show-big-img" src="@YuFeng.Web.Helpers.FilesHelper.GetNewsTitleImg(item.TitleImg)" />
                </div>
            }
        </div>
        <div class="content-box clearfix">
            <div class="content-box-title">
                <p>体系证书</p>
            </div>
            @foreach (YuFeng.Models.New.News item in Model.Where(o => o.Type == (int)YuFeng.Models.AppEnum.NewsType.PatentCertificate))
            {
                <div class="col-xs-6 no-padding honor-img">
                    <img class="show-big-img" src="@YuFeng.Web.Helpers.FilesHelper.GetNewsTitleImg(item.TitleImg)" />
                </div>
            }
        </div>
    </div>
    @Html.Partial("_Footer")
</div>

@section scripts
{
    <script type="text/javascript">
        var preLoading = function (events) {
            var images = [];
            var imgs = document.images;
            for (var i = 0; i < imgs.length; i++) {
                images.push(imgs[i].src);
            }

            @*images.push('@Url.Content("~/assets/images/banner-1.png")');
            images.push('@Url.Content("~/assets/images/logo.png")');
            images.push('@Url.Content("~/assets/images/menu-1.png")');
            images.push('@Url.Content("~/assets/images/menu-2.png")');
            images.push('@Url.Content("~/assets/images/menu-3.png")');
            images.push('@Url.Content("~/assets/images/menu-4.png")');
            images.push('@Url.Content("~/assets/images/menu-5.png")');*@

            imgLoading(images, {
                complete: function () {
                    events.complete();
                }
            });
        };
        $(function () {
            preLoading({
                complete: function () {
                    // 页面预加载结束；
                    $(".loader").hide();
                    $(".page-wrap").show();
                }
            });



        });
    </script>
}